/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 jfinal app. jfapp Group.
 */


define(['adminapp'], function ($app) {
    $app.navactive('module_stat');

    $app.listtable({
        'sAjaxSource' : g.ctx + "admin/stat/module/recordList?visitMenu=" + g.visitMenu + "&day=" + g.day,
        'aoColumns'   : [
            $app.checkall,
            $app.autono
        ],
        'aoColumnDefs': [
            {
                'aTargets' : [2],
                'mData'    : null,
                "bSortable": false,
                'mRender'  : function (data, type, full) {
                    return g.menuName;
                }
            },
            {
                'aTargets' : [3],
                'mData'    : null,
                "bSortable": false,
                'mRender'  : function (data, type, full) {
                    return full["visit_date"] + " " + full["visit_time"];
                }
            }
        ]
    }, 'data-list');
});

